package com.sun.dto;

import lombok.Data;

import java.util.List;

@Data
public class PagedList<T> {
    private Integer total;
    private List<T> rows;
    private Integer totalPage;

    public PagedList(List<T> data, Integer total, Integer totalPage) {
        this.total = total;
        this.rows = data;
        this.totalPage = totalPage;
    }


}
